package com._21cn.cms.common;

import java.util.SortedMap;
import java.util.TreeMap;

/**
 * Created by Thinkpad on 2017/3/21.
 */
public class FormSelector {

    private static final SortedMap<Integer, String> statusMap = new TreeMap<Integer, String>();   //状态
    private static final SortedMap<Integer, String> publishStatusMap = new TreeMap<Integer, String>();   //状态
    private static final SortedMap<Integer, String> regionTypeMap = new TreeMap<Integer, String>();
    private static final SortedMap<Integer, String> templateTypeMap = new TreeMap();
    private static final SortedMap<Integer, String> templateStatusMap = new TreeMap();
    private static final SortedMap<Integer, String> isShowMap = new TreeMap();
    private static final SortedMap<Integer, String> cateTypeMap = new TreeMap();
    private static final SortedMap<Integer, String> paymentTypeMap = new TreeMap();
    private static final SortedMap<Integer, String> businessStatusMap = new TreeMap<Integer, String>();   //状态
    private static final SortedMap<Integer, String> typeIdMap = new TreeMap<Integer, String>();

    static {
        statusMap.put(Constants.STATUS_CLOSE, "无效");
        statusMap.put(Constants.STATUS_ENABLE, "有效");

        publishStatusMap.put(com._21cn.cms.article.Constants.PUBLISH_STATUS_NONE, "未发布");
        publishStatusMap.put(com._21cn.cms.article.Constants.PUBLISH_STATUS_DONE, "人工发布");
        publishStatusMap.put(com._21cn.cms.article.Constants.PUBLISH_STATUS_FETCH_DONE, "采集发布");
        publishStatusMap.put(com._21cn.cms.article.Constants.PUBLISH_STATUS_CANCEL, "已撤稿");

        regionTypeMap.put(com._21cn.cms.article.Constants.REGION_TYPE_COMMON, "普通区块");
        regionTypeMap.put(com._21cn.cms.article.Constants.REGION_TYPE_INCLUDE, "嵌套区块");

        templateTypeMap.put(Constants.TEMPLATE_TYPE_CHANNEL_INDEX, "频道首页");
        templateTypeMap.put(Constants.TEMPLATE_TYPE_COLUMN_LIST, "栏目列表页");
        templateTypeMap.put(Constants.TEMPLATE_TYPE_ARTICLE_CONTENT, "文章内容页");
        templateTypeMap.put(Constants.TEMPLATE_TYPE_REGION_INCLUDE, "区块嵌套页");

        templateStatusMap.put(Constants.TEMPLATE_STATUS_CLOSE, "关闭");
        templateStatusMap.put(Constants.TEMPLATE_STATUS_ENABLE, "有效");
        templateStatusMap.put(Constants.TEMPLATE_STATUS_TEST, "测试");

        isShowMap.put(Constants.IS_CLOSE,   "关闭");
        isShowMap.put(Constants.IS_SHOW,    "显示");

        cateTypeMap.put(Constants.CATE_TYPE_BRAND,           "汽车品牌");
        cateTypeMap.put(Constants.CATE_TYPE_SERIES,          "汽车车系");
        cateTypeMap.put(Constants.CATE_TYPE_OTHER,           "汽车类型");
        cateTypeMap.put(Constants.CATE_TYPE_WATCH_BRAND,     "手表品牌");

        paymentTypeMap.put(Constants.PAYMENT_TYPE_ALL,      "全款");
        paymentTypeMap.put(Constants.PAYMENT_TYPE_MONTH_12,      "12分期");
        paymentTypeMap.put(Constants.PAYMENT_TYPE_MONTH_24,      "24分期");
        paymentTypeMap.put(Constants.PAYMENT_TYPE_MONTH_36,      "36分期");

        businessStatusMap.put(Constants.BUSINESS_ON_SELL,       "在售");
        businessStatusMap.put(Constants.BUSINESS_OFF_SELL,      "下架");

        typeIdMap.put(Constants.TYPE_ID_CAR_PROPERTY,               "汽车属性");
        typeIdMap.put(Constants.TYPE_ID_WATCH_PROPERTY,             "手表属性");
    }

    public static SortedMap<Integer, String> getStatusMap() {
        return statusMap;
    }

    public static SortedMap<Integer, String> getPublishStatusMap() {
        return publishStatusMap;
    }

    public static SortedMap<Integer, String> getRegionTypeMap() {
        return regionTypeMap;
    }

    public static SortedMap<Integer, String> getTemplateTypeMap() {
        return templateTypeMap;
    }

    public static SortedMap<Integer, String> getTemplateStatusMap() {
        return templateStatusMap;
    }

    public static SortedMap<Integer, String> getIsShowMap() {
        return isShowMap;
    }

    public static SortedMap<Integer, String> getCateTypeMap() {
        return cateTypeMap;
    }

    public static SortedMap<Integer, String> getPaymentTypeMap() {
        return paymentTypeMap;
    }

    public static SortedMap<Integer, String> getBusinessStatusMap() {
        return businessStatusMap;
    }

    public static SortedMap<Integer, String> getTypeIdMap(){
        return typeIdMap;
    }
}
